
using UnityEngine;
using WooEngine.Data.Interfaces;

public class AppConfigData : IData<string>
{
    public string AppName = "";
    public int AppFrameRate = 30;
    public int OutPX_W = 750;
    public int OutPX_H = 1334;
    public int DPI = 400;
    public int lang = -1;

    public void Initialize(string initData)
    {
        if(initData != null && !initData.Equals(string.Empty))
        {
            AppConfigData data = JsonUtility.FromJson<AppConfigData>(initData);
            AppName = data.AppName;
            AppFrameRate = data.AppFrameRate;
            OutPX_H = data.OutPX_H;
            OutPX_W = data.OutPX_W;
            DPI = data.DPI;
            lang = data.lang;
        }
    }

    public void Release()
    {

    }
}
